#include "Match.h"
#include <iostream>

using namespace std;

Match::Match(size_t _refStart, size_t _inputStart, size_t _length, size_t _badChars) :
  	refStart(_refStart),
  	inputStart(_inputStart),
  	length(_length),
	badChars(_badChars)
{
}

Match::~Match()
{
}


void Match::print() const
{
	//cout << refStart << " " << (refStart + length) << " " << inputStart << " " << (inputStart + length) <<  " (bad chars until input: " << badChars << ", which makes it: " << (inputStart - badChars) << " " << (inputStart + length - badChars) << ")" << endl;
	cout << refStart << " " << (refStart + length) << " " << inputStart << " " << (inputStart + length) << endl;

///	cout << refStart << " " << (refStart + length) << " " << (inputStart - badChars)  << " " << (inputStart - badChars + length) << endl;
	//cout << refStart << " " << (refStart + length) << " " << (inputStart - badChars)  << " " << (inputStart - badChars + length) << "    bad:" << badChars << endl;
}

